import { requestClient } from '#/api/request';

enum Api {
  listConfig = '/chat/config/list',
  updateConfig = '/system/config',
  addConfig = '/chat/config/add',
}

export function listConfig() {
  return requestClient.get<any>(Api.listConfig);
}

export function updateConfig(data: any) {
  return requestClient.put<any>(Api.updateConfig, data);
}

export function addConfig(data: any) {
  return requestClient.post<any>(Api.addConfig, data);
}
